/**
  ******************************************************************************
  * @file    bsp_pwm.h
  * @author  
  * @brief   
  ******************************************************************************
  * @attention
  *
  * 
  * 
  *
  * 
  * 
  * 
  *                       
  *
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __BSP_PWM_H
#define __BSP_PWM_H

#ifdef __cplusplus
extern "C" {
#endif  /* #ifdef __cplusplus */

/* Includes ------------------------------------------------------------------*/
#include "MS51_16K.H"

/* Exported types ------------------------------------------------------------*/
typedef enum
{
    PWM_RUNNING_LED_PULSE,
    PWM_FAN_PULSE,
	PWM_MAX,
}PWM_Idx_Typedef;

/* Exported macro ------------------------------------------------------------*/
#define PWM_PER				(100)
#define PWM_DUTY_MAX		(100)
/* Exported functions ------------------------------------------------------- */
void BSP_PWM_Init(void);
void BSP_PWM_Duty_Set(uint8_t index, uint16_t duty);

#ifdef __cplusplus
}
#endif  /* #ifdef __cplusplus */
#endif /* __BSP_PWM_H */

/************************ (C) COPYRIGHT HWADAR *****END OF FILE****/



